package com.guoxin.chapter3.waitnotify.producerconsumerallwait;

/**
 * @author guoxin
 * @date 2019年8月22日
 */
public class ThreadP extends Thread{
	private Producer producer;

	public ThreadP(Producer producer) {
		super();
		this.producer = producer;
	}
	
	@Override
	public void run() {
		while (true) {
			producer.setValue();
		}
	}
}
